import component from "element-plus/es/components/tree-select/src/tree-select-option.mjs";
import { pa } from "element-plus/es/locales.mjs";
import  {createRouter,createWebHashHistory, createWebHistory} from "vue-router";

// 定制路由

const routes=[
    {
        path:'/',
        name:'main',
        component:()=>import('@/views/Main.vue'),
        redirect:"/home",
        children:[
            {
                path:"home",
                name:"home",
                component:()=>import("@/views/Home.vue")
            }
        ]
    }
]

const router=createRouter({
    // 设置路由的模式
    history:createWebHistory(),
    routes,
})


export default router;